package com.wl.other.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wl.entity.Message;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    //发送信息
    @Insert("insert into message (rid,sid,content,ctime,`read`) values (#{rid},#{sid},#{content},now,#{read})")
    int add(Message message);
}
